<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<jsp:include page="/inc.jsp"></jsp:include>
<title>excel文件导入解析</title>

<script type="text/javascript">

	function impExcel(){
		$('#impExcel').form('submit',{
			url : '${ctx}/parseExcelToXmlController/impExcel',
			success : function(result){
				alert(result);
			}
		});
	}
	
	function expExcel(){
		alert("导出");
	}
</script>

</head>
<body>
	<table>
	    <tr>
	      <td>
			<form id="expExel" method="post" enctype="multipart/form-data">
				<a href="javascript:void(0)" class="easyui-linkbutton"  onclick="expExcel()">导出未确认要素</a>
			</form>
		  </td>
		  <td>
			<form id="impExcel" method="post" enctype="multipart/form-data">
				<input type="file" name="excelTemp" accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"/>
				<a href="javascript:void(0)" class="easyui-linkbutton"  onclick="impExcel()">导入</a>
			</form>
		  </td>
	    </tr>
	 </table>
</body>
</html>